home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Gold 2
/
Shareware Gold II - Volume 2 Number 1 - Wayzata Technology (7071) (1991).iso
/
backup
/
filesafe
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1990-02-12
|
4KB
|
96 lines
Echo off
CLS
if "%1" == "" goto Noparms
if "%2" == "" goto NoDir
GOTO Proceed
:NoDir
Echo
Echo W A R N I N G
Echo You did not specify a directory
Echo
Echo If you proceed, File-Safe will be installed in the root directory
Echo of drive %1. If you made a mistake and want to start over, then
Echo press Ctl-Brk now; otherwise
Echo
Pause
Cls
:Proceed
Echo ══════════════════════════════════════════════════════════════════════
Echo
Echo F I L E - S A F E
Echo Hard Disk Installation Procedure
Echo
Echo You have asked that File-Safe be installed on a drive and
Echo directory specified by you. They are:
Echo
Echo DRIVE DIRECTORY
Echo
Echo %1 %2
Echo
Echo If this is not correct, press Ctl-Brk now. Then re-enter
Echo the procedure with the correct drive letter and directory
Echo according to the following format:
Echo
Echo INSTALL x: name
Echo
Echo where "x" is the drive letter and "name" is the name of
Echo the directory you wish to use. The current (default)
Echo drive should be A:.
Echo
Echo ══════════════════════════════════════════════════════════════════════
pause
if "%2" == "" goto BypassMD
MD %1\%2
:BypassMD
%1
CD \%2
Echo Echo off > inst0.bat
Echo Cls >> inst0.bat
Echo HDINST2 %1 %2 >> inst0.bat
GOTO Cont1
:Noparms
Echo ╔════════════════════════════════════════════════════════════════════╗
Echo ║ ║
Echo ║ F I L E - S A F E ║
Echo ║ Hard Disk Installation Procedure ║
Echo ║ ║
Echo ║ This procedure will install File-Safe on your hard disk ║
Echo ║ and set up the control files to simplify its operation. ║
Echo ║ ║
Echo ║ It will create a sub-directory called FILESAFE where the ║
Echo ║ programs and data files will be stored. It assumes that ║
Echo ║ your hard disk is drive C:. If this is not correct, or ║
Echo ║ if you want to use a different directory name, press ║
Echo ║ Ctl-Brk now. Then re-enter the procedure with the correct ║
Echo ║ drive letter and directory name according to the following ║
Echo ║ format: ║
Echo ║ INSTALL x: name ║
Echo ║ ║
Echo ║ where "x" is the drive letter and "name" is the name of ║
Echo ║ the directory you wish to use. The current (default) ║
Echo ║ drive should be A:. ║
Echo ║ ║
Echo ╚════════════════════════════════════════════════════════════════════╝
Echo
pause
MD C:\FILESAFE
C:
CD \FILESAFE
Echo Echo off > inst0.bat
Echo Cls >> inst0.bat
Echo HDINST2 C: FILESAFE >> inst0.bat
:Cont1
CLS
Echo
Echo Extracting files/programs - one moment please .....
Echo
: If a master already exists, rename it
IF EXIST FILESAFE.MRE Ren FILESAFE.MRE FILESAFE.BAK
A:FILESAFE
: Extract all files to the installation directory
IF NOT EXIST FILESAFE.BAK Goto SkipRename
Del FILESAFE.MRE
Ren FILESAFE.BAK *.MRE
:SkipRename
INST0